package cn.gs.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import cn.gs.dao.SelectLinkManDao;
import cn.gs.dao.SelectVisitDao;
import cn.gs.dao.SelectVisitDaoImpl;
import cn.gs.domain.Visit;
@Component(value = "selectVisitService")
@Scope("prototype")
public class SelectVisitServiceImpl implements SelectVisitService {
	

	@Resource(name="selectVisitDao")
	SelectVisitDao selectVisitDao;
	public void setSelectVisitDao(SelectVisitDao selectVisitDao) {
		this.selectVisitDao = selectVisitDao;
	}
	
	
	@Override
	public List<Visit> selectVisit(String cust_name, String visit_addr, int page) {
		List<Visit> list=selectVisitDao.selectVisit(cust_name, visit_addr, page);		
		return list;
	}

	@Override
	public List<Visit> selectPageCount(String cust_name, String visit_addr) {
		SelectVisitDao selectVisitDao1=new SelectVisitDaoImpl();
		List<Visit> list=selectVisitDao1.selectPageCount(cust_name, visit_addr);
		return list;
	}
}
